package com.int_tech.data.dao;

import com.int_tech.data.entity.DataInfo;
import org.springframework.data.domain.Page;
import org.springframework.data.domain.PageRequest;
import org.springframework.data.domain.Pageable;
import org.springframework.data.jpa.repository.JpaRepository;

import java.util.List;

/**
 * Created by liubch on 2018/6/9.
 */
public interface DataInfoDao extends JpaRepository<DataInfo,Integer> {
    Page<DataInfo> findByShebeiId(Pageable pageRequest, String shebeiId);

    Page<DataInfo> findByShebeiIdAndZhenTouOrderByCreateTimeDesc(Pageable pageRequest, String shebeiId, String a0);

    Page<DataInfo> findByShebeiIdAndZhenTouOrderByCreateTimeAsc(Pageable pageRequest, String shebeiId, String a1);

    List<DataInfo> findByStatus(int i);

    List<DataInfo> findOneByShebeiIdAndZhenTouOrderByCreateTimeDesc(String shebeiId, String a3);
}
